package com.migo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.migo.dao.ShPhoneInfoDao;
import com.migo.entity.ShPhoneInfoEntity;
import com.migo.service.ShPhoneInfoService;



@Service("shPhoneInfoService")
public class ShPhoneInfoServiceImpl implements ShPhoneInfoService {
	@Autowired
	private ShPhoneInfoDao shPhoneInfoDao;
	
	@Override
	public ShPhoneInfoEntity queryObject(Integer id){
		return shPhoneInfoDao.queryObject(id);
	}

	@Override
	public ShPhoneInfoEntity getPhone(ShPhoneInfoEntity shPhoneInfo) {
		return shPhoneInfoDao.getPhone(shPhoneInfo);
	}

	@Override
	public List<ShPhoneInfoEntity> queryList(Map<String, Object> map){
		return shPhoneInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return shPhoneInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(ShPhoneInfoEntity shPhoneInfo){
		shPhoneInfoDao.save(shPhoneInfo);
	}
	
	@Override
	public void update(ShPhoneInfoEntity shPhoneInfo){
		shPhoneInfoDao.update(shPhoneInfo);
	}
	
	@Override
	public void delete(Integer id){
		shPhoneInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		shPhoneInfoDao.deleteBatch(ids);
	}
	
}
